<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<import type='css' file="css.manager" /> 
<import type='js' file="js.jquery" />
<load href="/Public/js/jquery.ld.js" /> 
<script type="text/javascript">
$(function(){
	$(".select_auth").click(function(){
		var auth=$(this).val();
		switch(auth){
			case '1':
			case '2':
				$("#group").attr('disabled','false');
				$("#department").attr('disabled','false');
				break;
			case '3':
			case '4':
				$("#group").removeAttr('disabled');
				$("#department").removeAttr('disabled');
			break;
		}
	})
})
</script>
</head>
<body>
<div class="explain_public">
	<a href="__URL__/ulist">用户列表</a>　
	<a href="__URL__/add">添加用户</a>
</div>
<div class="explain_public">
<b class="red">注意：</b><br/>
1 请填写用户真实姓名<br/>
2 带<span class="red">*</span>为必填项<br/>
</div>
<form autocomplete="off" method="post" action="__URL__/update">
<table width="98%" class="manager_public_tab" align="center" width="80%" border="0" cellpadding="0" cellspacing="1" >
	<tr class="head"><td colspan='20' align="center">用户修改</td></tr>
	<tr>
		<td><span class="red">*</span>用户名</td>
		<td><input type="text" name="username" value="{$user_info.username}" size="40"></td>
	</tr>
	<tr>
		<td><span class="red">*</span>E-mail</td>
		<td><input type="text" name="email" value="{$user_info.email}" size="40"></td>
	</tr>
	<td><span class="red">*</span>用户身份</td>
		<td>
			<input class="select_auth" value="1" type="radio" <eq name="user_info.auth" value="1">checked</eq> name="auth">普通用户
			<input class="select_auth" value="2" type="radio" <eq name="user_info.auth" value="2">checked</eq> name="auth">管理员
		</td>
	</tr>
	<tr>
		<td><span class="red">*</span>状态</td>
		<td>
			<input value="-1" type="radio" <eq name="user_info.state" value="-1">checked</eq> name="state">已经删除
			<input value="0" type="radio" <eq name="user_info.state" value="0">checked</eq> name="state">禁用
			<input value="1" type="radio" <eq name="user_info.state" value="1">checked</eq> name="state">正常
		</td>
	</tr>
	<tr>
		<td><span class="red">*</span>密码</td>
		<td>
			<input type="password" name="password" size="40">
		</td>
	</tr>
	<tr>
		<td><span class="red">*</span>确认密码</td>
		<td>
			<input type="password" name="password_repeat" size="40">
		</td>
	</tr>
	<tr><td colspan="22" align="center"><input type="submit" value="确认修改"></td></tr>
</table>
<input type="hidden" name="uid" value="{$user_info.uid}" />
</form>
</body>
</html>